package com.google.code.p.restrpc.http;

import java.util.Properties;

/**
 * @author dz
 */
public class DefaultHttpClientAgentFactory {
    
    static class HttpClientAgentFactoryHolder {
        static HttpClientAgentFactory instance = new HttpClientAgentFactory() {
            
            private DefaultHttpClientAgent instance = new DefaultHttpClientAgent();
            
            public HttpClientAgent getHttpClientAgent() {
                return instance;
            }
            
            public HttpClientAgent getHttpClientAgent(Properties properties) {
                throw new UnsupportedOperationException();
            }
            
        };
    }
    
    /**
     * @return
     */
    public static final HttpClientAgentFactory getInstance() {
        return HttpClientAgentFactoryHolder.instance;
    }
}
